package com.sam.chat.mapper;

import com.sam.chat.entity.ChatGroupDao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sam.chat.vo.GroupVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sam
 * @since 2023-01-31
 */
@Mapper
public interface ChatGroupMapper extends BaseMapper<ChatGroupDao> {

    List<GroupVo> getGroupList(String userId);

    GroupVo getGroupInfo(String groupId);

    int deleteGroup(String groupId);

    int modifyGroupName(String groupId,String name);

}
